<?php 
global $header;
global $footer;
global $control;
global $message;
global $title, $description, $error;

global $featureManager;
$header['title'] = 'New Dictionary';
$header['head'] = '';
$header['intro'] = '<strong>QuickMerger</strong> is the way you make a dictionary oriented with source glossaries. First prepare your source glossaries, and you may then quickly and easily make your own dictionary with one click. After that, your dictionary is still editable &mdash; add/modify/remove a term or a definition in it, or even sort them. <a href="#">See more</a>. ';
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);
$featureManager->apply("com.yizin.platform.site.control", $control);
?>
<?= $header['html']?>
<div class="container-L">
	<?=$control['html']?>
</div>
<div class="container-R">
	<?=Utils::showMessage($message)?>
	<form method="post" action="<?=REQUEST_BASE?>dictionary/new/">
		<h3>New dictionary</h3>
		<table class="form">
			<tr>
				<th><label for="title"><em class="required">*</em>Title</label></th>
				<td><input type="text" name="title" id="title" value="<?=$title?>" class="text text-long" /><?=Utils::showFormError($error['title'])?></td>
			</tr>
			<tr>
				<th><label for="description">Description</label></th>
				<td><textarea rows="3" name="description" id="description" class="text"><?=$description?></textarea></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" value="Create" class="button" /></td>
			</tr>
		</table>
	</form>
	<div class="vspacing"></div>
</div>
<?= $footer['html']?>
